package net.fiodor.log {

	/**
	 * @author Tomasz Swierszcz, 
	 * email: tomasz.swierszcz@dreamlab.pl
	 */
	 
	public class LogLevel {
				
		private var _name:String;
		private var _value:Number;
		
		public function LogLevel( name:String, value:Number ) {
			this._name = name;
			this._value = value;
		}
		
		public static var ALL:LogLevel = new LogLevel( "ALL", 1 );
		
		public static var LOG:LogLevel = new LogLevel( "LOG", 1 );
		
		public static var DEBUG:LogLevel = new LogLevel( "DEBUG", 2 );
		
		public static var INFO:LogLevel = new LogLevel( "INFO",4 );
		
		public static var WARN:LogLevel = new LogLevel( "WARN",8 );
		
		public static var ERROR:LogLevel = new LogLevel( "ERROR",16 );
		
		public static var FATAL:LogLevel = new LogLevel( "FATAL",32 );
		
		public static var NONE:LogLevel = new LogLevel( "NONE", 1024 );
		
		
		public function getName():String { return _name; }
		
		public function getValue():Number { return _value; }
		
		public function toString():String { return getName(); }
	}
	
}
